#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
    int n = 0;
    while (scanf("%d", &n) == 1)
    {
        for (int i = 0; i < n; i++)
        {
            printf("*");
        }
        printf("\n");
    }
    return 0;
}


#include <stdio.h>
int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n; j++)
            {
                printf("* ");
            }
            printf("\n");
        }

    }
    return 0;
}

#include <stdio.h>

int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 1; i <= n; i++)
        {
            for (j = 0; j < i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}

#include <stdio.h>

int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = n; i >= 1; i--)
        {
            for (j = 0; j < i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}

#include <stdio.h>

int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n - 1 - i; j++)
            {
                printf("  ");
            }
            for (j = 0; j <= i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }

}
#include<stdio.h>

int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = n; i >= 1; i--)
        {
            for (j = 0; j < n - i; j++)
            {
                printf(" ");
            }
            for (j = 0; j < i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }

    }
    return 0;
}

#include<stdio.h>

int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 0; i <= n; i++)
        {
            for (j = 0; j <= n - i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
        for (i = 2; i < n + 2; i++)
        {
            for (j = 0; j < i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}

#include <stdio.h>

int main()
{
    int n = 0;
    int i = 0;
    int j = 0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 0; i <= n; i++)
        {
            for (j = 0; j < (n - i) * 2; j++)
            {
                printf(" ");
            }
            for (j = 0; j <= i; j++)
            {
                printf("*");
            }
            printf("\n");
        }
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < (i + 1) * 2; j++)
            {
                printf(" ");
            }
            for (j = 0; j < n - i; j++)
            {
                printf("*");
            }
            printf("\n");
        }
    }
}

